package com.se.controller;

import com.se.domain.vo.CatVO;
import com.se.domain.vo.ResultVO;
import com.se.service.CatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CatController {

    @Autowired
    CatService catService;
    @PostMapping("/no/cat/list")
    public ResultVO<List<CatVO>> listCat(){
        return ResultVO.ok(catService.listAllCat());
    }
}
